class AddMoreImages < ActiveRecord::Migration
  def self.up
    say_with_time "Uploading images..." do
      Picture.create :artwork => Artwork.find_by_name('Test2'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'Chandelier_amber.jpg')), :media_type => Media::TYPE_PICTURE, :caption => 'another glass piece'
      Picture.create :artwork => Artwork.find_by_name('Test5'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'jehangir.jpg')), :media_type => Media::TYPE_PICTURE, :caption => 'one more glass piece'
      Picture.create :artwork => Artwork.find_by_name('Yarn painting'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'Classic NW Glass Art Experience_2.jpg')), :media_type => Media::TYPE_PICTURE, :caption => 'a third glass piece'
      Picture.create :artist => Artist.find_by_name('Joe Testuser'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'doogtoons.jpg')), :media_type => Media::TYPE_PICTURE, :caption => 'another cartoon'
      Picture.create :artist => Artist.find_by_name('Julie Testlady'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'nicole_montreal_2005bw.jpg')), :media_type => Media::TYPE_PICTURE, :caption => 'a real artist photo'
    end
  end

  def self.down
  end
end